/*
 * @(#)FileInfo.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config.runtime;

import java.net.URL;

/**
 * @author Web Platform Development Team
 */
public class FileInfo {
    private String scriptFileName;
    private String scriptFileFullName;
    private URL scriptURL;
    private long lastModified;

    /**
     * Instantiates a new file info.
     *
     * @param scriptFileName     the script file name
     * @param scriptFileFullName the script file full name
     * @param lastModified       the last modified
     */
    public FileInfo(String scriptFileName, String scriptFileFullName, long lastModified) {
        this.scriptFileName = scriptFileName;
        this.scriptFileFullName = scriptFileFullName;
        this.lastModified = lastModified;
    }

    /**
     * Instantiates a new file info.
     *
     * @param scriptFileName the script file name
     * @param scriptURL      the script url
     * @param lastModified   the last modified
     */
    public FileInfo(String scriptFileName, URL scriptURL, long lastModified) {
        this.scriptFileName = scriptFileName;
        this.scriptURL = scriptURL;
        this.lastModified = lastModified;
    }

    /**
     * Gets the script file name.
     *
     * @return the script file name
     */
    public String getScriptFileName() {
        return scriptFileName;
    }

    /**
     * Gets the script file full name.
     *
     * @return the script file full name
     */
    public String getScriptFileFullName() {
        return scriptFileFullName;
    }

    /**
     * Gets the last modified.
     *
     * @return the last modified
     */
    public long getLastModified() {
        return lastModified;
    }

    /**
     * Sets the last modified.
     *
     * @param lastModified the new last modified
     */
    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    /**
     * Gets the script url.
     *
     * @return the script url
     */
    public URL getScriptURL() {
        return scriptURL;
    }
}